package com.xingzhe.pengji.framework.log;

import org.apache.log4j.Level;
import org.apache.log4j.LogManager;
import org.springframework.stereotype.Component;

@Component("logManager")
public class Log4JManager
{
    public void setLogger(String packageName, String level)
    {
        LogManager.getLogger(packageName).setLevel(Level.toLevel(level));
    }
}
